<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            height: 10000px;
        }
        
        div {
            width: 5px;
            height: 5px;
            background-color: pink;
            border: 1px solid red;
            padding: 10px;
        }
    </style>
</head>

<body>
    <div>222kudttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt</div>
    <script>
        var div = document.querySelector('div');
        console.log(div.scrollWidth);
        console.log(div.scrollHeight);
        console.log(div.scrollTop);
        console.log();
    </script>
</body>

</html>